/*

Author   : chaos

FileName : enum_def.cpp

Date     : 10/08/17 15:24:59

*/
#include <iostream>
using namespace std;

using namespace std;

enum FRUIT {
    APPLE,
    ORANGE,
    BANANA,
    PEAR,
    GRAPE
};

enum MONTH {
    JAN=1,
    FEB,
    MAR,
    APR,
    MAY,
    JUN
};

enum MONTH_DAYS {
    dJAN=31,
    dFEB=28,
    dMAR=31,
    dAPR=30,
    dMAY,
    dJUN=30
};

int main(int argc ,char *argv[])
{

    cout << "enum FRUIT" << endl;
    cout << "APPLE=" << APPLE << endl;
    cout << "ORANGE=" << ORANGE << endl;
    cout << "BANANA=" << BANANA << endl;
    cout << "PEAR=" << PEAR << endl;
    cout << "GRAPE=" << GRAPE << endl;

    cout << "enum MONTH" << endl;
    cout << "JAN=" << JAN << endl;
    cout << "FEB=" << FEB << endl;
    cout << "MAR=" << MAR << endl;
    cout << "APR=" << APR << endl;
    cout << "MAY=" << MAY << endl;
    cout << "JUN=" << JUN << endl;

    cout <<"enum MONTH_DAYS" << endl;
    cout << "dJAN=" << dJAN << endl;
    cout << "dFEB=" << dFEB << endl;
    cout << "dMAR=" << dMAR << endl;
    cout << "dAPR=" << dAPR << endl;
    cout << "dMAY=" << dMAY << endl;
    cout << "dJUN=" << dJUN << endl;
    return 0;
}
